package com.gui;

import javax.swing.JPanel;
import javax.swing.border.MatteBorder;
import java.awt.Color;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import com.toedter.calendar.JDateChooser;
import javax.swing.JTextArea;
import javax.swing.JButton;

public class PanelAjoutProjets extends JPanel {
	private JTextField textNumero;
	private JTextField textReference;
	private JTextField textNomClient;

	/**
	 * Create the panel.
	 */
	public PanelAjoutProjets() {
		setForeground(Color.WHITE);
		setLayout(null);
		setBackground(new java.awt.Color(128, 130, 133) );
		JLabel lblNumero = new JLabel("Numero :");
		lblNumero.setForeground(Color.WHITE);
		lblNumero.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		lblNumero.setBounds(10, 25, 112, 14);
		add(lblNumero);
		setMaximumSize(new java.awt.Dimension(1050, 375));
		setMinimumSize(new java.awt.Dimension(1050, 375));
		setPreferredSize(new java.awt.Dimension(1056,410));
		
		
		textNumero = new JTextField();
		textNumero.setBounds(176, 24, 156, 20);
		add(textNumero);
		textNumero.setColumns(10);
		
		JLabel lblReference = new JLabel("Reference :");
		lblReference.setForeground(Color.WHITE);
		lblReference.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		lblReference.setBounds(10, 69, 112, 14);
		add(lblReference);
		
		textReference = new JTextField();
		textReference.setBounds(176, 68, 156, 20);
		add(textReference);
		textReference.setColumns(10);
		
		JLabel lblNewLabel = new JLabel("Etat_Projet :");
		lblNewLabel.setForeground(Color.WHITE);
		lblNewLabel.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		lblNewLabel.setBounds(10, 111, 112, 14);
		add(lblNewLabel);
		
		JComboBox comboBoxEtatProjets = new JComboBox();
		comboBoxEtatProjets.setModel(new DefaultComboBoxModel(new String[] {"En Cours", "Fini ", "En Pause"}));
		comboBoxEtatProjets.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		comboBoxEtatProjets.setBounds(176, 105, 156, 20);
		add(comboBoxEtatProjets);
		
		JLabel lblNewLabel_1 = new JLabel("Date Debut");
		lblNewLabel_1.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		lblNewLabel_1.setBounds(621, 27, 102, 14);
		add(lblNewLabel_1);
		
		JDateChooser dateDebut = new JDateChooser();
		dateDebut.setBounds(782, 25, 188, 20);
		add(dateDebut);
		
		JLabel lblDateEcheance = new JLabel("Date Echeance :");
		lblDateEcheance.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		lblDateEcheance.setBounds(621, 71, 139, 14);
		add(lblDateEcheance);
		
		JDateChooser dateEcheance = new JDateChooser();
		dateEcheance.setBounds(782, 69, 188, 20);
		add(dateEcheance);
		
		JLabel lblNewLabel_2 = new JLabel("Nom Client :");
		lblNewLabel_2.setForeground(Color.WHITE);
		lblNewLabel_2.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		lblNewLabel_2.setBounds(10, 162, 112, 14);
		add(lblNewLabel_2);
		
		textNomClient = new JTextField();
		textNomClient.setBounds(176, 161, 156, 20);
		add(textNomClient);
		textNomClient.setColumns(10);
		
		JLabel lblNewLabel_3 = new JLabel("Description :");
		lblNewLabel_3.setForeground(new Color(0, 0, 0));
		lblNewLabel_3.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		lblNewLabel_3.setBounds(10, 200, 112, 14);
		add(lblNewLabel_3);
		
		JTextArea textDescription = new JTextArea();
		textDescription.setBounds(176, 197, 321, 64);
		add(textDescription);
		
		JLabel lblNewLabel_4 = new JLabel("Date Deploie :");
		lblNewLabel_4.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		lblNewLabel_4.setBounds(621, 113, 139, 14);
		add(lblNewLabel_4);
		
		JDateChooser dateDeploie = new JDateChooser();
		dateDeploie.setBounds(782, 111, 188, 20);
		add(dateDeploie);
		
		JButton boutonValider = new JButton("VALIDER");
		boutonValider.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		boutonValider.setBounds(386, 295, 112, 23);
		add(boutonValider);
		
		JButton boutonAnnuler = new JButton("ANNULER");
		boutonAnnuler.setFont(new Font("Verdana", Font.BOLD | Font.ITALIC, 14));
		boutonAnnuler.setBounds(650, 297, 128, 23);
		add(boutonAnnuler);

	}
}
